home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / texinfo / info / Makefile.in < prev    next >
Makefile  |  1994-01-28  |  6KB  |  212 lines

  1. # Makefile for texinfo/info.    -*- Indented-Text -*-
  2. # Copyright (C) 1993 Free Software Foundation, Inc.
  3.  
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8.  
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13.  
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. #### Start of system configuration section. ####
  19.  
  20. srcdir = @srcdir@
  21. VPATH  = $(srcdir):$(common)
  22.  
  23. common = $(srcdir)/../libtxi
  24.  
  25. CC = @CC@
  26.  
  27. INSTALL = @INSTALL@
  28. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  29. INSTALL_DATA = @INSTALL_DATA@
  30.  
  31. LN    = ln
  32. RM    = rm -f
  33. TAR    = tar
  34. MKDIR    = mkdir
  35. MAKEINFO= ../makeinfo/makeinfo
  36. COMPRESS= compress
  37.  
  38. DEFS = @DEFS@
  39.  
  40. LDEFS = -DNAMED_FUNCTIONS=1 -DDEFAULT_INFOPATH='"$(DEFAULT_INFOPATH)"'
  41.  
  42. TERMLIBS = @TERMLIBS@
  43. LIBS = $(TERMLIBS) -L../libtxi -ltxi @LIBS@
  44. LOADLIBES = $(LIBS)
  45.  
  46. SHELL = /bin/sh
  47.  
  48. CFLAGS = -g
  49. LDFLAGS = -g
  50.  
  51. prefix = /usr/local
  52. exec_prefix = $(prefix)
  53. bindir = $(exec_prefix)/bin
  54. # Prefix for each installed program, normally empty or `g'.
  55. binprefix = 
  56. libdir = $(prefix)/lib
  57. # Prefix for each installed man page, normally empty or `g'.
  58. manprefix = 
  59. mandir = $(prefix)/man/man1
  60. manext = 1
  61. infodir = $(prefix)/info
  62.  
  63. #### End of system configuration section. ####
  64.  
  65. SRCS =    dir.c        display.c    echo_area.c    filesys.c \
  66.     info-utils.c    info.c        infodoc.c    infomap.c \
  67.     m-x.c        nodes.c        search.c    session.c \
  68.     signals.c    terminal.c    tilde.c        window.c \
  69.     xmalloc.c    indices.c    makedoc.c    nodemenu.c \
  70.     footnotes.c    dribble.c    variables.c    gc.c
  71.  
  72. HDRS =    display.h    doc.h        echo_area.h    filesys.h \
  73.     general.h    getopt.h    info-utils.h    info.h \
  74.     infomap.h    nodes.h        search.h     session.h \
  75.     signals.h    termdep.h    terminal.h    tilde.h \
  76.     indices.h    window.h    footnotes.h    dribble.h \
  77.     variables.h    gc.h
  78.  
  79. OBJS =    dir.o display.o doc.o echo_area.o filesys.o info-utils.o info.o \
  80.     infodoc.o infomap.o m-x.o nodes.o search.o session.o signals.o \
  81.     terminal.o tilde.o window.o indices.o xmalloc.o nodemenu.o \
  82.     footnotes.o dribble.o variables.o gc.o 
  83.  
  84. # The names of files which declare info commands.
  85. CMDFILES = $(srcdir)/session.c $(srcdir)/echo_area.c $(srcdir)/infodoc.c \
  86.        $(srcdir)/m-x.c $(srcdir)/indices.c $(srcdir)/nodemenu.c \
  87.        $(srcdir)/footnotes.c $(srcdir)/variables.c
  88.  
  89. # The name of the program which builds documentation structure from CMDFILES.
  90. MAKEDOC_OBJECTS = makedoc.o xmalloc.o
  91. MAKEDOC_SOURCE = makedoc.c xmalloc.c
  92.  
  93. .c.o:
  94.     $(CC) -c $(CPPFLAGS) $(LDEFS) $(DEFS) -I. -I$(srcdir) -I$(common) $(CFLAGS) $<
  95.  
  96. all: info info.info info-stnd.info
  97. sub-all: all
  98.  
  99. install: all
  100.     $(INSTALL_PROGRAM) info $(bindir)/info
  101.     -d=$(srcdir); test -f ./info.info && d=.; $(INSTALL_DATA) $$d/info.info $(infodir)/info.info
  102.     -d=$(srcdir); test -f ./info-stnd.info && d=.; $(INSTALL_DATA) $$d/info-stnd.info $(infodir)/info-stnd.info
  103.     -$(INSTALL_DATA) $(srcdir)/info.1 $(mandir)/info.$(manext)
  104.  
  105. uninstall:
  106.     rm -f $(bindir)/info
  107.     rm -f $(infodir)/info.info
  108.     rm -f $(infodir)/info-stnd.info
  109.     rm -f $(mandir)/info.$(manext)
  110.  
  111. info: $(OBJS) ../libtxi/libtxi.a
  112.     $(CC) $(LDFLAGS) -o info $(OBJS) $(LOADLIBES)
  113.  
  114. info.info: info.texi
  115.     $(MAKEINFO) --no-split -I$(srcdir) info.texi
  116.  
  117. info-stnd.info: info-stnd.texi
  118.     $(MAKEINFO) --no-split -I$(srcdir) info-stnd.texi
  119.  
  120. makedoc: $(MAKEDOC_OBJECTS) ../libtxi/libtxi.a
  121.     $(CC) $(LDFLAGS) -o makedoc $(MAKEDOC_OBJECTS) $(LOADLIBES)
  122.  
  123. Makefile: $(srcdir)/Makefile.in ../config.status
  124.     cd ..; sh config.status
  125.  
  126. clean:
  127.     rm -f info funs.h doc.c makedoc $(OBJS) $(MAKEDOC_OBJECTS)
  128.  
  129. distclean: clean texclean
  130.     rm -f Makefile config.status *~ core core.* *.BAK TAGS
  131.  
  132. mostlyclean: clean
  133.  
  134. realclean: distclean
  135.     rm -f funs.h doc.c
  136.     rm -f info.info info-stnd.info
  137.  
  138. TAGS: $(SRCS) makedoc-TAGS
  139.     etags $(SRCS)
  140.     cat makedoc-TAGS >>TAGS && rm -f makedoc-TAGS
  141.  
  142. makedoc-TAGS: $(CMDFILES)
  143.     ./makedoc -tags $(CMDFILES) >makedoc-TAGS
  144.  
  145. texclean:
  146.     rm -f *.toc *.aux *.log *.cp *.fn *.tp *.vr *.pg *.ky *.cps \
  147.     *.tps *.fns *.kys *.pgs *.vrs
  148.  
  149. check: info
  150.  
  151. # The files `doc.c' and `funs.h' are created by ./makedoc run over the source
  152. # files which contain DECLARE_INFO_COMMAND.  `funs.h' is a header file
  153. # listing the functions found.  `doc.c' is a structure containing pointers
  154. # to those functions along with completable names and documentation strings.
  155. funs.h: makedoc $(CMDFILES)
  156.     -@if test -f funs.h; then mv -f funs.h old-funs.h; fi; :
  157.     -@if test -f doc.c; then mv -f doc.c old-doc.c; fi; :
  158.     ./makedoc $(CMDFILES)
  159.     -@if cmp -s old-funs.h funs.h; then mv old-funs.h funs.h; \
  160.       else rm -f old-funs.h; fi; :
  161.     -@if cmp -s old-doc.c doc.c; then mv old-doc.c doc.c; \
  162.       else rm -f old-doc.c; fi; :
  163.  
  164. doc.c:         funs.h
  165. dribble.o:    dribble.c dribble.h
  166. display.o:    display.c
  167. echo_area.o:    echo_area.c
  168. filesys.o:    filesys.c
  169. info-utils.o:    info-utils.c
  170. info.o:        info.c
  171. infodoc.o:    infodoc.c
  172. infomap.o:    infomap.c
  173. m-x.o:        m-x.c
  174. nodes.o:    nodes.c
  175. search.o:    search.c
  176. session.o:    session.c
  177. signals.o:    signals.c
  178. terminal.o:    terminal.c
  179. tilde.o:    tilde.c
  180. window.o:    window.c
  181. xmalloc.o:    xmalloc.c
  182. indices.o:    indices.c
  183. makedoc.o:    makedoc.c
  184.  
  185. dir.o:         dir.c
  186. display.o:     nodes.h info-utils.h search.h
  187. display.o:     terminal.h window.h display.h
  188. echo_area.o:     info.h
  189. filesys.o:     general.h tilde.h filesys.h
  190. footnotes.o:     footnotes.h
  191. info-utils.o:     info-utils.h nodes.h search.h
  192. info.o:     info.h $(common)/getopt.h
  193. infodoc.o:     info.h doc.h
  194. infomap.o:     infomap.h funs.h
  195. gc.o:        info.h
  196. m-x.o:         info.h
  197. nodes.o:     search.h filesys.h
  198. nodes.o:     nodes.h info-utils.h
  199. search.o:     general.h search.h nodes.h
  200. session.o:     info.h
  201. signals.o:     info.h signals.h
  202. terminal.o:     terminal.h termdep.h
  203. tilde.o:     tilde.h
  204. variables.c:     variables.h
  205. window.o:     nodes.h window.h display.h
  206. window.o:     info-utils.h search.h infomap.h
  207.  
  208. # Prevent GNU make v3 from overflowing arg limit on SysV.
  209. .NOEXPORT:
  210.  
  211. # eof
  212.